<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/10/15
  Time: 16:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="form-group">
<label  class="col-sm-2 control-label">选择挂号病人:</label>
<div class="col-sm-4">
    <select class="form-control" name="patient" onchange="changePat(this)">
        <c:forEach items="${userinfoList}" var="u">
            <c:choose>
                <c:when test="${u.id==uinfo.id}">
                    <option value="${u.id}" selected>${u.uname}</option>
                </c:when>
                <c:otherwise>
                    <option value="${u.id}">${u.uname}</option>
                </c:otherwise>
            </c:choose>
        </c:forEach>
    </select>
</div>
    <div class="col-sm-4"><a href="<%=request.getContextPath()%>/personal/newin"> 点击添加就诊病人 </a></div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label">姓名:</label>
    <label class="col-sm-7 control-label" style="text-align: left">${uinfo.uname}</label>
    <input type="hidden" name="name" value="${uinfo.uname}">
</div>

<div class="form-group">
    <label class="col-sm-2 control-label">身份证</label>
    <label class="col-sm-7 control-label" style="text-align: left">${uinfo.idcard}</label>
    <input type="hidden" name="personCard" class="form-control" value="${uinfo.idcard}">

</div>
<div class="form-group">
    <label class="col-sm-2 control-label">性别</label>
    <label class="col-sm-7 control-label" style="text-align: left">${uinfo.sex}</label>
    <input type="hidden" name="sex" value="${uinfo.sex}">
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">年龄</label>
    <label class="col-sm-7 control-label" style="text-align: left">${uinfo.age}</label>
    <input type="hidden" name="age" class="form-control" value="${uinfo.age}">

</div>

<div class="form-group">
    <c:if test="${uinfo.types==0}">
    <label class="col-sm-2 control-label">手机号</label>
    <label class="col-sm-7 control-label" style="text-align: left">${user.phone}</label>
    <input type="hidden" name="tel"  id="tel" class="form-control" value="${user.phone}">
        <div class="col-sm-3">
            <span id="checktel" style="color: red"></span>
        </div>
    </c:if>
    <c:if test="${uinfo.types!=0}">
        <label class="col-sm-2 control-label">手机号</label>
        <div class="col-sm-7">
            <input type="text" name="tel" id="tel" style="float:left" class="form-control" placeholder="请输入正确手机号">
        </div>
        <div class="col-sm-3">
            <span id="checktel" style="color: red"></span>
        </div>

    </c:if>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">就医卡</label>
    <div class="col-sm-7">
        <input type="text" name="patientId" class="form-control" placeholder="请输入就医卡号(可空)">
    </div>
</div>
</body>
</html>
